package com.zcb.qingshoudan.fragment;

import android.annotation.SuppressLint;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.zcb.qingshoudan.R;

/**
 * Created by admin on 2016/11/24.
 */
@SuppressLint("ValidFragment")
public class RefundFragment extends Fragment implements View.OnClickListener{
    private Context mContext;
    private IFragment iFragment;

    private Button backMoneyBtn;
    private EditText backMoneyET;
    private View mView;

    public RefundFragment() {
    }

    public RefundFragment(Context mContext, IFragment iFragment) {
        this.mContext = mContext;
        this.iFragment = iFragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view =inflater.inflate(R.layout.fragment_refund,container,false);
        mView=view;
        initView();
        return view;
    }

    private void initView(){
        backMoneyBtn= (Button) mView.findViewById(R.id.refund_atonce);
        backMoneyET= (EditText) mView.findViewById(R.id.refund_money_ed);
        backMoneyBtn.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.refund_atonce :
                Toast.makeText(mContext,"该功能正在建设中...",Toast.LENGTH_LONG).show();
                break;
        }
    }
}
